const api = {
    commonApi: {
      plfLoginUrl:'plat/login',   // 登录
      plfLogoutUrl:'plat/logout', // 登出
      plfTopMenuUrl:'plat/menu/top-menu', // 顶级菜单
      plfSideMenuUrl:'plat/menu/side-menu', // 二级菜单
      plfRouteUrl:'plat/routes', // 路由
      plfTableUrl:'plat/table/header', // 表头
      plfFormUrl:'plat/form/init'          // 表单
    }
  }
  
  /*module.exports =function(){
    this.urlAPI=function(){
        return {
          resultCode:'000000',
          resultMessage:'成功',
          resultData: api.commonApi
        };
    }
  }*/
module.exports ={
    urlAPI:function(req,res){
        return {
            resultCode:'000000',
            resultMessage:'成功',
            resultData: api.commonApi
          };
    },
    other:function(req,res){
        return {
          resultCode:'000000',
          resultMessage:'成功',
          resultData: {}
        };
    }
  }
  /*;
  module.exports ={
    resultCode:'000000',
    resultMessage:'成功',
    resultData: api.commonApi
  }*/